package cn.stylefeng.guns.modular.tool.mapper;

import cn.stylefeng.guns.modular.tool.entity.ToolExpressSum;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressSumParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressSumResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 合计分配管理 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-03-25
 */
public interface ToolExpressSumMapper extends BaseMapper<ToolExpressSum> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2022-03-25
     */
    List<ToolExpressSumResult> customList(@Param("paramCondition") ToolExpressSumParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2022-03-25
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolExpressSumParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2022-03-25
     */
    Page<ToolExpressSumResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolExpressSumParam paramCondition, @Param("condition") String condition);

    Page<ToolExpressSumResult> findlistHebingPageBySpec(@Param("page") Page page, @Param("paramCondition") ToolExpressSumParam paramCondition, @Param("condition") String condition);
    
    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2022-03-25
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolExpressSumParam paramCondition);

	void deleteBySpec(@Param("paramCondition")ToolExpressSumParam expressSumParam);

	boolean saveBatchList(@Param("list")List<ToolExpressSumParam> listadd);

}
